@import './variables.scss';

@mixin container($width) {
  border-radius: 4px;
  box-shadow: 0px 5px 6px 0px rgba(0, 0, 0, 0.2);
  width: $width;
}

@mixin containerTitle {
  font-size: 16px;
  font-family: SourceHanSansSC-Bold, SourceHanSansSC;
  font-weight: bold;
  color: #FFFFFF;
  letter-spacing: 2px;
}

@mixin flexGroup {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@mixin close {
  font-size: $cf-font;
  color: $color;
  cursor: pointer;
}

@mixin button($color) {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid $color;
  border-bottom-color: darken($color, 10);
  border-radius: 5px;
  background: linear-gradient(180deg, $color, darken($color, 10));
  color: white;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
  font-size: 1rem;

  &:hover {
    background: $color;
    box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.2);
  }
  &:active {
    background: darken($color, 10);
  }
}

@mixin card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid #eee;
  width: $card-width;
  padding: 1rem;
}
